<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>煤炭供销存图表信息</title>
    <style>
  .ui-button {
  	  display: inline-block;
	  padding: 2px 2px;
	  margin-bottom: 0;
	  font-size: 8px;
	  font-weight: normal;
	  line-height: 1.42857143;
	  text-align: center;
	  white-space: nowrap;
	  vertical-align: middle;
	  -ms-touch-action: manipulation;
      touch-action: manipulation;
	  cursor: pointer;
	  -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
	  background-image: none;
	  border: 1px solid transparent;
	  border-radius: 4px;
  }
  </style>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  $(document).ready(function(){
	$('#tt').tabs({
	   onSelect:function(title){
	       $('#tt .panel-body').css('width','auto');
		}
	});
	$(".tabs-wrap").css('width','100%');
  });
 </script>
 </head>
 <body style="overflow-x: hidden;">
  <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="xmStockinfoController.do?doAdd" >
					<input id="id" name="id" type="hidden" value="${xmStockinfoPage.id }"/>
	<table cellpadding="0" cellspacing="1" class="formtable">
		<tr>
			<td align="right">
				<label class="Validform_label">单位:</label>
			</td>
			<td class="value">
		     	 <input id="unit" name="unit" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">单位</label>
			</td>
			<td align="right">
				<label class="Validform_label">当前年份:</label>
			</td>
			<td class="value">
					  <input id="createTime" name="createTime" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore"  />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">当前年份</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">去年年份:</label>
			</td>
			<td class="value">
					  <input id="lastyear" name="lastyear" type="text" style="width: 150px"  class="Wdate" onClick="WdatePicker()"  ignore="ignore"  />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">去年年份</label>
			</td>
			<td align="right">
				<label class="Validform_label">省份:</label>
			</td>
			<td class="value">
				<t:dictSelect field="flag" type="list"  datatype="*"  typeGroupCode="flag"   defaultVal="${xmStockinfoPage.flag}" hasLabel="false"  title="省份" ></t:dictSelect>
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">省份</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">当前库存:</label>
			</td>
			<td class="value">
		     	 <input id="currentstock" name="currentstock" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">当前库存</label>
			</td>
			<td align="right">
				<label class="Validform_label">今年库存:</label>
			</td>
			<td class="value">
		     	 <input id="inventoryyear" name="inventoryyear" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">今年库存</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">去年库存:</label>
			</td>
			<td class="value">
		     	 <input id="inventorylastyear" name="inventorylastyear" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">去年库存</label>
			</td>
			<td align="right">
				<label class="Validform_label">当前日耗:</label>
			</td>
			<td class="value">
		     	 <input id="consumption" name="consumption" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">当前日耗</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">今年日耗:</label>
			</td>
			<td class="value">
		     	 <input id="yearConsumption" name="yearConsumption" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">今年日耗</label>
			</td>
			<td align="right">
				<label class="Validform_label">去年日耗:</label>
			</td>
			<td class="value">
		     	 <input id="lastConsumption" name="lastConsumption" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">去年日耗</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">当前供给:</label>
			</td>
			<td class="value">
		     	 <input id="supply" name="supply" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">当前供给</label>
			</td>
			<td align="right">
				<label class="Validform_label">今年供给:</label>
			</td>
			<td class="value">
		     	 <input id="yearSupply" name="yearSupply" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">今年供给</label>
			</td>
		</tr>
		<tr>
			<td align="right">
				<label class="Validform_label">去年供给:</label>
			</td>
			<td class="value">
		     	 <input id="lastSupply" name="lastSupply" type="text" maxlength="32" style="width: 150px" class="inputxt"  ignore="ignore" />
				<span class="Validform_checktip"></span>
				<label class="Validform_label" style="display: none;">去年供给</label>
			</td>
		</tr>
	
	</table>
			<div style="width: auto;height: 200px;">
				<%-- 增加一个div，用于调节页面大小，否则默认太小 --%>
				<div style="width:800px;height:1px;"></div>
				<t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
				 <t:tab href="xmStockinfoController.do?xmUsableinfoList&id=${xmStockinfoPage.id}" icon="icon-search" title="可用天数图表信息" id="xmUsableinfo"></t:tab>
				</t:tabs>
			</div>
			</t:formvalid>
			<!-- 添加 附表明细 模版 -->
	<table style="display:none">
	<tbody id="add_xmUsableinfo_table_template">
		<tr>
			 <td align="center"><div style="width: 25px;" name="xh"></div></td>
			 <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
				  <td align="left">
					  	<input name="xmUsableinfoList[#index#].unit" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">单位</label>
				  </td>
				  <td align="left">
							<input name="xmUsableinfoList[#index#].createTime" type="text" class="Wdate" onClick="WdatePicker()"  style="width:150px;" ignore="ignore" />
					  <label class="Validform_label" style="display: none;">当前年份</label>
				  </td>
				  <td align="left">
							<input name="xmUsableinfoList[#index#].lastyear" type="text" class="Wdate" onClick="WdatePicker()"  style="width:150px;" ignore="ignore" />
					  <label class="Validform_label" style="display: none;">去年年份</label>
				  </td>
				  <td align="left">
					  	<input name="xmUsableinfoList[#index#].currentuse" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">当前可用天数</label>
				  </td>
				  <td align="left">
					  	<input name="xmUsableinfoList[#index#].yearday" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">今年可用天数值</label>
				  </td>
				  <td align="left">
					  	<input name="xmUsableinfoList[#index#].lastyearday" maxlength="32" type="text" class="inputxt"  style="width:120px;"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">去年可用天数值</label>
				  </td>
			</tr>
		 </tbody>
		</table>
 </body>
 <script src = "webpage/com/jeecg/xmstockinfo/xmStockinfo.js"></script>
	